<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>绑定表达式</title>
    <script src="../../../vue.js"></script>
<!--    <script src="vue-model.js"></script>-->
</head>
<body>
<div id="app">
    <h1>{{id==1}}</h1>
    <h2>{{id==1 ? '1':'2'}}</h2>
    <h3>{{names}}</h3>
</div>
<script>
    var vm = new Vue({
 el : '#app',
 data: {
 id : 1,
 index : 0,
 name : 'Vue',
 avatar : 'http://……',
 count : [1, 2, 3, 4, 5],
 names : ['Vue1.0', 'Vue2.0'],
 items : [
 { name : 'Vue1.0', version : '1.0' },
 { name : 'Vue1.1', version : '1.0' }
 ]
 }
});
</script>
</body>
</html>